mui.init();
var demo = new Vue({
	el: '#main',
	data: {
		lists: []
	},
	methods: {
		todo: todo
	},
	ready: function() {
		var finishUrl = getUrl("64getlist");
		var headerJson = getHeader();
		var datastart = "account=" + readData(localStorage.phone) + "&guideId=" + readData(localStorage.guideId) + "&status=finish";
		this.$http({
			url: finishUrl,
			method: 'POST',
			headers: headerJson,
			data: datastart,
			timeout:10000
		}).then(function(respons) {
			if (respons.data.code == "0") {
				var serviceList = respons.data.obj.list;
				for (var i = 0; i < serviceList.length; i++) {
					if (serviceList[i].serviceId == "1") {
						serviceList[i].title = "上门试衣";
					} else {
						serviceList[i].title = "定制改衣";
					}
				}
				this.$set('lists',serviceList);
			} else {
				mui.alert("网络链接异常，请稍后重试" + data.code);
			}
		}, function(respons) {
			console.log('finish 网络链接异常');
		});
	}
});

function todo(sid){
	mui.toast( '此功能暂未开放');
}
